#include "CreatePlaySoundMessage.h"

#include "..\Game Objects\GameObject.h"

#include "MessageID.h"

CreatePlaySoundMessage::CreatePlaySoundMessage(GameObject* owner)
	: Message(MessageID::MSG_PLAYJUMPSOUND)
{	
	// Store the owner
	pOwner = owner;
	pOwner->AddRef();
}


CreatePlaySoundMessage::~CreatePlaySoundMessage()
{
	if (pOwner != nullptr)
	{
		pOwner->Release();
		pOwner = nullptr;
	}
}
